package com.chinasoft.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudentQuery {
    //当前页
    private Integer currentPage=1;//设置了默认值
    //页面大小
    private Integer pageSize=10;//设置了默认值
    //搜索关键字
    private String keyword;
    //获取起始位置
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
